<?php
class Q_Filter_Trim extends Q_Filter_Abstract {

    /**
     * The parameters that were passed to this filter
     */
    protected $_params = array(
        'field' => 0, // default is zero because this allows $filter->filter('some text')
        'charlist' => null,
    );
	/**
	 * convert whatever value was passed into a float
	 */
    public function doFilter($value) {
    
        return (is_null($this->_params['charlist'])) ? trim($value) : trim($value, $this->_params['charlist']);
    
    }

}